/*
 * Copyright (c) 2019 Wormpex.com. All Rights Reserved.
 */

package com.sk.agent.javaag;

/**
 * @author ke.su date: 2019-11-12 Time: 下午2:52
 */
public class Timestat {
    static ThreadLocal<Long> t = new ThreadLocal<>();

    public static void start() {
        t.set(System.currentTimeMillis());
    }

    public static void end() {
        long time = System.currentTimeMillis() - t.get();
        System.out.println(Thread.currentThread().getStackTrace()[2] + "speed:" + time);
    }
}
